#ifndef SOCPROOF_H_SEEN
#define SOCPROOF_H_SEEN

void graph_function_one(char *, char *);
void init_file_read(void);

void init_friendship_graph(void);
struct friend_proof* create_friend_proofs(int,int);
void fill_hash(int, int);

void init_transaction_graph(void);
struct transact_proof* create_transaction_proofs(int, char*);

void test_case();
void test_case2();
int is_friend(struct friend_proof *, int);
int is_opinion(struct transact_proof *, int);


struct transact_data {
	
	char *publicKeyA;
	char *publicKeyS;
	char *opin;
	double timeval;
	
};

struct friend_data {

	char *publicKeyA;
	char *publicKeyB;
	double timeval;

};

struct friend_proof {

	struct friend_data *content;
	unsigned char *encrypt;
	int len;

};


struct transact_proof {

	struct transact_data *content;
	unsigned char *encrypt;
	int len;

};


struct user_hashes {

	//unsigned char *old_hash;
	unsigned char *new_hash;
	int len;

};

#endif


